Skip to content

Commit

Permalink
Merge pull request #191 from Vaishnavi1047/main
Browse files Browse the repository at this point in the history
redirection issue in like and dislike
  • Loading branch information
meisabhishekpatel authored Oct 30, 2024
2 parents 14a8847 + 89d172d commit 7f1ef33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def likes(request, issue_pk):
current_likes = current_likes - 1
Issue.objects.filter(pk=issue_pk).update(likes=current_likes)
Issue.objects.filter(pk=issue_pk).update(dislikes=current_dislikes)
return redirect('../dashboard')
return redirect('dashboard')


@login_required
Expand All @@ -481,4 +481,4 @@ def dislikes(request, issue_pk):
current_dislikes = current_dislikes - 1
Issue.objects.filter(pk=issue_pk).update(likes=current_likes)
Issue.objects.filter(pk=issue_pk).update(dislikes=current_dislikes)
return redirect('../dashboard')
return redirect('dashboard')

0 comments on commit 7f1ef33

Please sign in to comment.